<!--{if $status != 2}-->
<!--{if $livethread}-->
<div id="u179_group_title_line" style="margin-top:18px;"></div>
<div id="u179_group_title" style="width:68px;">{lang admin_live}{lang threads}</div>
	<div id="u179_live_obr">
    <div id="u179_live_ibr">
    	<div id="u179_live_title">
        	<h1><a href="forum.php?mod=viewthread&tid=$livethread[tid]">$livethread[subject] <sup><img src="{$_G['style']['styleimgdir']}/images/livethreadtitle.gif" style="width:16px; height:11px;" /></sup></a></h1>
        </div>
        
        <div id="u179_live_aline">
        	<span class="z">{lang author} : $livethread[author]</span>
            <span class="y">$livethread[replies] {lang reply}</span>
            <div id="u179_clear"></div>
        </div>
        
        <a href="forum.php?mod=viewthread&tid=$livethread[tid]">
        <div id="u179_live_mbg">
        	$livemessage
        </div>
        </a>
        
        <!--{eval $livethread_reply = DB::fetch_first("SELECT * FROM ".DB::table('forum_post')." WHERE tid ='$livethread[tid]' AND first = 0 ORDER BY dateline DESC ");}-->
		<!--{if $livethread_reply['pid']}-->
        <div id="u179_group_title_line" style="margin-top:18px;"></div>
		<div id="u179_group_title" style="width:68px;">{lang lastpost}</div>
        
        <div id="u179_live_reply">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="46" rowspan="2" align="left" valign="top">
                <div id="u179_forumdisplay_avatar">
                <div id="u179_forumdisplay_avatar_img">
                <!--{if $livethread_reply['authorid'] && $livethread_reply['author'] && !$livethread_reply['anonymous']}-->
                <a href="home.php?mod=space&uid=$livethread_reply[authorid]&do=profile&mobile=2" style="border:none;" target="_blank">
                    <img src="<!--{avatar($livethread_reply[authorid], small, true)}-->" width="32" height="32" style="border:none;" />
                </a>
                <!--{else}-->
                    <!--{if !$livethread_reply['authorid']}-->
                    <img src="uc_server/images/noavatar_small.gif" width="32" height="32"/>
                    <!--{elseif $livethread_reply['authorid'] && $livethread_reply['author'] && $livethread_reply['anonymous']}-->
                        <!--{if $_G['forum']['ismoderator']}-->
                        <a href="home.php?mod=space&uid=$livethread_reply[authorid]&do=profile&mobile=2" style="border:none;" target="_blank">
                            <img src="uc_server/images/noavatar_small.gif" width="32" height="32" style="border:none;"/>
                        </a>
                        <!--{else}-->
                            <img src="uc_server/images/noavatar_small.gif" width="32" height="32"/>
                        <!--{/if}-->
                    <!--{else}-->
                        <img src="<!--{avatar($livethread_reply[authorid], small, true)}-->" width="32" height="32"/>
                    <!--{/if}-->
                <!--{/if}-->
                </div>
                </div>
                </td>
                <td valign="top">
                    <span class="u179_live_replyname z">
                    <!--{if $livethread_reply['authorid'] && $livethread_reply['author'] && !$livethread_reply['anonymous']}-->
                    $livethread_reply[author]
					<!--{else}-->
						<!--{if !$livethread_reply['authorid']}-->
						{lang guest} <em>$post[useip]</em>
						<!--{elseif $livethread_reply['authorid'] && $livethread_reply['author'] && $livethread_reply['anonymous']}-->
							<!--{if $_G['forum']['ismoderator']}-->
                            <a href="home.php?mod=space&uid=$livethread_reply[authorid]&do=profile&mobile=2" target="_blank">{lang anonymous}</a>
                            <!--{else}-->
                            {lang anonymous}
                            <!--{/if}-->
						<!--{else}-->
						$livethread_reply[author] <em>{lang member_deleted}</em>
						<!--{/if}-->
					<!--{/if}-->
                    </span>
                    <span class="u179_dy y" style="font-size:11px; font-weight:normal;">
                    <!--{date($livethread_reply[dateline], 'u')}-->
                    </span>
                    <div id="u179_clear"></div>
                </td>
              </tr>
              <tr>
                <td valign="top">
                	"$livethread_reply[message]"<br />
					<span class="u179_dy" style="font-size:11px; font-weight:normal;">
                    <!--{if $livethread_reply['status'] & 8}-->
                    <!--{if $_G['setting']['mobile']['mobilecomefrom']}--> {$_G['setting']['mobile']['mobilecomefrom']}<!--{else}-->{lang from_mobile}<!--{/if}-->
                    <!--{/if}-->
                    </span>
                </td>
              </tr>
            </table>
        </div>
        <!--{/if}-->
        
        <!--{if !$liveallowpostreply}-->
		<div class="u179_center">
			<!--{if !$_G[uid]}-->
				{lang login_to_reply}, <a href="member.php?mod=logging&action=login" class="u179_dr">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="u179_dr">$_G['setting']['reglinkname']</a>
			<!--{else}-->
				{lang no_permission_to_post}<!--{if helper_access::check_module('group') && $status != 'isgroupuser'}--><a href="forum.php?mod=group&action=join&fid=$_G[fid]" class="u179_dr">{lang group_join_group}</a><!--{/if}-->
			<!--{/if}-->
		</div>
        <!--{else}-->
        <div>
			<form id="livereplypostform" method="post" action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$livethread[tid]&replysubmit=yes&infloat=yes&handlekey=livereplypost" onsubmit="return livereplypostvalidate(this)">
				<div>
					<textarea id="livereplymessage" name="message" rows="3" style="width:100%; color:gray;" placeholder="{lang group_live_fastreply_notice}"></textarea>
				</div>

				<div>
                    <!--{if $secqaacheck || $seccodecheck}-->
                    <div class="z"><!--{subtemplate common/seccheck}--></div>
                    <!--{/if}-->
                    
                    <div class="y" style="margin-top:11px;">
                        <p style="margin-bottom:10px;">
                        <button type="submit" name="replysubmit" value="replysubmit" id="livereplysubmit">
                            <strong>{lang group_live_post}</strong>
                        </button>
                        </p>
                    </div>
                    <div id="u179_clear"></div>
                </div>
				<input type="hidden" name="formhash" value="{FORMHASH}">
				<input type="hidden" name="subject" value="  ">
			</form>
		</div>
		<!--{/if}-->
</div>
</div>
<!--{/if}-->

<div id="u179_group_title_line" style="margin-top:18px;"></div>
<div id="u179_group_title" style="width:68px;">{lang latest_threads}</div>
<!--{if $newthreadlist['dateline']['data']}-->
<div class="threadlist">
	<div>
		<!--{loop $newthreadlist['dateline']['data'] $thread}-->
        	<a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" >
				<div id="threadlist_li" style="border-bottom:1px dotted #DDDDDD;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="18" valign="top">
							<!--{if $thread[folder] == 'lock'}-->
									<img src="{$_G['style']['styleimgdir']}/images/folder_lock.gif" width="10" height="11" />
								<!--{elseif $thread['special'] == 1}-->
									<img src="{$_G['style']['styleimgdir']}/images/pollsmall.gif" width="10" height="11" />
								<!--{elseif $thread['special'] == 2}-->
									<img src="{$_G['style']['styleimgdir']}/images/tradesmall.gif" width="10" height="11" />
								<!--{elseif $thread['special'] == 3}-->
									<img src="{$_G['style']['styleimgdir']}/images/rewardsmall.gif" width="10" height="11" />
								<!--{elseif $thread['special'] == 4}-->
									<img src="{$_G['style']['styleimgdir']}/images/activitysmall.gif" width="10" height="11" />
								<!--{elseif $thread['special'] == 5}-->
									<img src="{$_G['style']['styleimgdir']}/images/debatesmall.gif" width="10" height="11" />
								<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
									<img src="{$_G['style']['styleimgdir']}/images/pin_$thread[displayorder].gif" width="10" height="11" />
								<!--{else}-->
									<img src="{$_G['style']['styleimgdir']}/images/folder_$thread[folder].gif" width="10" height="11" />
							<!--{/if}-->
						</td>
                        <td valign="top">
                        <a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" $thread[highlight] >{$thread[subject]}</a>
                        </td>
                      </tr>
                    </table>
                    
                    <div style="margin-left:18px; font-size:11px; color:#AAAAAA; line-height:16px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <!--{if $thread['replies'] > 0}-->
                      <tr>
                        <td width="80%">
                        	{lang author} : 
							<!--{if $thread['author'] && !$thread['anonymous']}-->
                            $thread[author]
                            <!--{else}-->
                            {lang anonymous}
                            <!--{/if}-->
                        	 @ $thread[dateline]
                            <br />
                            {lang join_thread} : 
                            <!--{if $thread['lastposter'] && !$thread['anonymous']}-->
                            $thread[lastposter] @ $thread[lastpost]
                            <!--{else}-->
                            	{lang anonymous} @ $thread[lastpost]
                          	<!--{/if}-->
                            
                        </td>
                        <td align="right">
                        	$thread[allreplies] {lang join_thread}<br />
							$thread[views] {lang focus_show}
                        </td>
                      </tr>
					  <!--{else}-->
                      <tr>
                        <td width="80%">
                        	{lang author} :
                            <!--{if $thread['author'] && !$thread['anonymous']}-->
                            $thread[author]
                            <!--{else}-->
                            {lang anonymous}
                            <!--{/if}-->
                        	 @ $thread[dateline]
                        </td>
                        <td align="right">
                        	$thread[allreplies] {lang join_thread}<br />
							$thread[views] {lang focus_show}
                        </td>
                      </tr>
                        <!--{/if}-->
                    </table>
                    </div>
                    </div>
				</a>
        	<!--{/loop}-->
		</div>

$multipage
<div id="u179_multi_footer"></div>

</div>

<!--{else}-->
<div id="u179_noinfo">{lang forum_nothreads}</div>
<!--{/if}-->

<div id="u179_group_title_line" style="margin-top:18px;"></div>
<div id="u179_group_title" style="width:68px;">{lang group_member_status}</div>
                
	<div style="padding:1px 0 16px 0;">

		<div class="bm_c">
			<!--{if $groupfeedlist}-->
				<ul class="el">
					<!--{loop $groupfeedlist $feed}-->
						<li style="border-bottom:1px #CCCCCC dashed; padding:8px 0;">
							<img src="$feed[icon_image]" width="8" height="8" />
							<!--{if !empty($feed[title_template])}-->$feed[title_template]<!--{/if}--> <!--{if !empty($feed[body_data][subject])}-->$feed[body_data][subject]<!--{/if}-->
						</li>
					<!--{/loop}-->
				</ul>
			<!--{else}-->
				<div id="u179_noinfo">{lang group_no_latest_feeds}</div>
			<!--{/if}-->
		</div>
	</div>
<!--{/if}-->